import request from '@/utils/request'


export function pageRequest(data) {
  return request({
    url: '/api/system/user/page',
    method: 'post',
    data
  })
}

export function addRequest(data) {
  return request({
    url: '/api/system/user/add',
    method: 'post',
    data
  })
}
export function editRequest(data) {
  return request({
    url: '/api/system/user/edit',
    method: 'post',
    data
  })
}

export function detailRequest(id) {
  return request({
    url: '/api/system/user/detail/'+id,
    method: 'get',
  })
}
export function delRequest(id) {
  return request({
    url: '/api/system/user/delete/'+id,
    method: 'get',
  })
}

export function roleListRequest() {
  return request({
    url: '/api/system/role/list',
    method: 'get',
  })
}



